package daa.levelup.UnitFactory;


public class UnitFactory {

    public static Unit createUnit(UnitType type) {
        switch (type) {
            case WARRIOR:
                return new Warrior(5, 7, "warrior", 12, "Sword");
            case WIZARD:
                return new Wizard(5, 3, "wizard", 50, "Staff");
            case ARCHER:
                return new Archer(7, 3, "archer", 10, "Bow");
            default:
                return null;
        }
    }

}
